package com.ruoyi.web.api;


import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.web.api.domain.TChapterCatagory;
import com.ruoyi.web.api.domain.TChapterCatagoryVo;
import com.ruoyi.web.api.factory.RemoteWebFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(contextId = "remoteWebService", value = ServiceNameConstants.WEB_SERVICE, fallbackFactory = RemoteWebFallbackFactory.class)
public interface RemoteWebService {

    @GetMapping("/catagory/all")
    public R<List<TChapterCatagory>> all();


    @GetMapping("/catagory/getCategoryAndChapters")
    public R<List<TChapterCatagoryVo>> getCategoryAndChapters();

}
